@extends('layout/index')


@section('main')

<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span><i class="icon-html5-2"></i>网站配置</span> 
    </div>


    <div class="mws-panel-body no-padding">
        <div role="grid" class="dataTables_wrapper" id="DataTables_Table_1_wrapper">
	        <table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info">
	            <thead>
	                <tr role="row" style="height:80px">
	                <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 6px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">ID</th>
	                <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 55px;" aria-label="Browser: activate to sort column ascending">网站名</th>
	                <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 50px;" aria-label="Browser: activate to sort column ascending">logo</th>
	                <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 35px;" aria-label="Browser: activate to sort column ascending">网站关键字</th>
	                <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 120px;" aria-label="Browser: activate to sort column ascending">网站描述</th>
	                <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 30px;" aria-label="Engine version: activate to sort column ascending">状态</th>
	                <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 40px;" aria-label="CSS grade: activate to sort column ascending">操作</th></tr>
	            </thead>
		        <tbody role="alert" aria-live="polite" aria-relevant="all">
		         @foreach($res as $k => $v)
	 			 <tr class=" {{$k%2==0?'odd':'even'}}">
				    <td class="id" class="sorting_1">{{ $v->id }}</td>
				    <td class=" ">{{ $v->webname }}</td>
				    <td class=" ">
				    @if($v->logo)
				    <img src="{{ $v->logo }}" alt="" style="height:60px" width="100%">
					@else
					 <img src="/upload/1.jpg" alt="" style="height:60px" width="100%">
					 @endif
				    </td>
				    <td class=" ">{{ $v->keywords }}</td>
					<td class=" ">{{ $v->description }}</td>
				    <td class=" ">{{ getCon($v->status) }}</td>
				    <td class=" "><a href="/Admin/config/edit?id={{ $v->id }}">修改</a> | <a href="/Admin/config/del?id={{ $v->id }}">删除</a></td>
				 </tr>
				@endforeach
				</tbody>
			</table>
		</div>
    </div>
</div>

@endsection